﻿<UserControl x:Class="ExportDemo.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:oxy="clr-namespace:OxyPlot.Silverlight;assembly=OxyPlot.Silverlight" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Margin="8">
            <Button Content="Save PDF" Click="SavePdf_Click"/>
            <Button Content="Save PDF (SilverPDF)" Margin="8 0 0 0" Click="SaveSilverPdf_Click"/>
            <Button Content="Save SVG" Margin="8 0 0 0" Click="SaveSvg_Click"/>
            <Button Content="Save PNG" Margin="8 0 0 0" Click="SavePng_Click"/>
        </StackPanel>
        <oxy:PlotView x:Name="plot1" Grid.Row="1" Model="{Binding PlotModel}"/>
    </Grid>
</UserControl>
